
package com.shop.cereshop.commons.domain.wallet;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 钱包充值记录表
 * </p>
 *
 * @since 2025-08-26
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@TableName("cere_wallet_recharge")
@ApiModel(value = "WalletRecharge", description = "钱包充值记录表")
@AllArgsConstructor
public class WalletRecharge {

    private static final long serialVersionUID = 1L;

    /**
     * 充值ID
     */
    @ApiModelProperty(value = "充值ID")
    @NotNull(message = "充值ID不能为空")
    @TableId(value = "recharge_id", type = IdType.AUTO)
    private Long rechargeId;


    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    @NotNull(message = "用户ID不能为空")
    @TableField("buyer_user_id")
    private Long buyerUserId;


    /**
     * 充值单号
     */
    @ApiModelProperty(value = "充值单号")
    @NotEmpty(message = "充值单号不能为空")
    @Length(max = 64, message = "充值单号长度不能超过64")
    @TableField(value = "recharge_no", condition = LIKE)
    private String rechargeNo;


    /**
     * 充值金额
     */
    @ApiModelProperty(value = "充值金额")
    @NotNull(message = "充值金额不能为空")
    @TableField("amount")
    private BigDecimal amount;


    /**
     * 支付方式 1-微信支付 2-支付宝支付
     */
    @ApiModelProperty(value = "支付方式 1-微信支付 2-支付宝支付")
    @NotNull(message = "支付方式 1-微信支付 2-支付宝支付不能为空")
    @TableField("payment_method")
    private Boolean paymentMethod;


    /**
     * 支付状态 0-待支付 1-支付成功 2-支付失败 3-已取消
     */
    @ApiModelProperty(value = "支付状态 0-待支付 1-支付成功 2-支付失败 3-已取消")
    @NotNull(message = "支付状态 0-待支付 1-支付成功 2-支付失败 3-已取消不能为空")
    @TableField("payment_status")
    private Boolean paymentStatus;


    /**
     * 第三方支付订单号
     */
    @ApiModelProperty(value = "第三方支付订单号")
    @Length(max = 64, message = "第三方支付订单号长度不能超过64")
    @TableField(value = "third_party_order_no", condition = LIKE)
    private String thirdPartyOrderNo;


    /**
     * 支付时间
     */
    @ApiModelProperty(value = "支付时间")
    @Length(max = 20, message = "支付时间长度不能超过20")
    @TableField(value = "payment_time", condition = LIKE)
    private String paymentTime;


    /**
     * 过期时间
     */
    @ApiModelProperty(value = "过期时间")
    @NotEmpty(message = "过期时间不能为空")
    @Length(max = 20, message = "过期时间长度不能超过20")
    @TableField(value = "expire_time", condition = LIKE)
    private String expireTime;


    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    @NotEmpty(message = "创建时间不能为空")
    @Length(max = 20, message = "创建时间长度不能超过20")
    @TableField(value = "create_time", condition = LIKE)
    private String createTime;


    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    @NotEmpty(message = "更新时间不能为空")
    @Length(max = 20, message = "更新时间长度不能超过20")
    @TableField(value = "update_time", condition = LIKE)
    private String updateTime;




}
